package cn.kooki.app.duobao.ui.Adapter;


import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import butterknife.Bind;
import butterknife.ButterKnife;

import cn.kooki.app.duobao.R;
import cn.kooki.app.duobao.base.BaseRecyclerViewAdapter;
import cn.kooki.app.duobao.data.Bean.Index.GoodsItem;

/**
 * Created by xiong on 2015/12/12.
 */
public class LikeAdapter extends BaseRecyclerViewAdapter<GoodsItem, LikeAdapter.LikeViewHolder> {


    @Override
    public LikeViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.layout_recommend_item, parent, false);

        return new LikeViewHolder(view);
    }

    @Override
    protected void bindDataToItemView(LikeViewHolder likeViewHolder, int position) {

    }

    static class LikeViewHolder extends RecyclerView.ViewHolder {

        @Bind(R.id.goods_img)
        ImageView goodsImg;
        @Bind(R.id.goods_name)
        TextView goodsName;
        @Bind(R.id.goods_progress_bg)
        ImageView goodsProgressBg;
        @Bind(R.id.goods_progress)
        ImageView goodsProgress;

        public LikeViewHolder(View itemView) {
            super(itemView);
            ButterKnife.bind(this,itemView);
        }
    }
}
